import { http } from "@/utils/http";

// 全局参数
export function getInitDataApi(params) {
  return http.request({
    url: "/api/global/getInitData",
    method: "post",
    params
  });
}

// CBT价格走势
export function assetStatesControllerApi(params) {
  return http.request({
    url: "/api/AssetStatesController/getList",
    method: "post",
    params
  });
}

// 买卖订单列表
export function dappOrderApi(data) {
  return http.request({
    url: "/api/dappOrder/getList",
    method: "post",
    data
  });
}

// 用户订单列表
export function userOrderApi(data) {
  return http.request({
    url: "/api/dappOrder/getList",
    method: "post",
    data
  });
}

// 我的信息&收益等
export function getMyInfoApi(data) {
  return http.request({
    url: "/api/my/getMyInfo",
    method: "post",
    data
  });
}

// 个人收益曲线数据
export function getUserCurveDataApi(data) {
  return http.request({
    url: "/api/state/getUserCurveData",
    method: "post",
    data
  });
}

// 个人质押曲线
export function getUserPledgeDataApi(data) {
  return http.request({
    url: "/api/state/getUserPledgeData",
    method: "post",
    data
  });
}

// 个人算力曲线
export function getUserPowerDataApi(data) {
  return http.request({
    url: "/api/state/getUserPowerData",
    method: "post",
    data
  });
}

// 个人NFT数据
export function getUserNftDataApi(data) {
  return http.request({
    url: "/api/state/getUserNftData",
    method: "post",
    data
  });
}

// 平台发放曲线数据
export function getPlatformDailyDataApi(data) {
  return http.request({
    url: "/api/state/getPlatformDailyData",
    method: "post",
    data
  });
}

// 平台 NFT
export function getPlatformNftDataApi(data) {
  return http.request({
    url: "/api/state/getPlatformNftData",
    method: "post",
    data
  });
}

// 平台 销毁
export function getPlatformDestroyDataApi(data) {
  return http.request({
    url: "/api/state/getPlatformDestroyData",
    method: "post",
    data
  });
}

// 平台 动态数据
export function getPlatformDynamicDataApi(data) {
  return http.request({
    url: "/api/state/getPlatformDynamicData",
    method: "post",
    data
  });
}

// 资产变更列表
export function getDappAssetChangeApi(data) {
  return http.request({
    url: "/api/dappAssetChange/getList",
    method: "post",
    data
  });
}

// 团队
export function myTeamApi(data) {
  return http.request({
    url: "/api/my/myTeam",
    method: "post",
    data
  });
}
